package com.honghe.web.controller.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.honghe.common.core.controller.BaseController;
import com.honghe.common.core.domain.AjaxResult;
import com.honghe.system.domain.vo.ContactVolumeTrendQueryVO;
import com.honghe.system.domain.vo.ContactVolumeTrendVO;
import com.honghe.system.service.IContactVolumeTrendService;

/**
 * 联系总量趋势Controller
 */
@RestController
@RequestMapping("/system/contact/trend")
public class ContactVolumeTrendController extends BaseController {
    
    @Autowired
    private IContactVolumeTrendService contactVolumeTrendService;

    /**
     * 获取联系总量趋势数据
     */
    @GetMapping("/volume")
    public AjaxResult getContactVolumeTrend(ContactVolumeTrendQueryVO queryVO) {
        ContactVolumeTrendVO trendVO = contactVolumeTrendService.getContactVolumeTrend(queryVO);
        return AjaxResult.success(trendVO);
    }
} 